DX11 BUILD EULER ROTATION MATRIX

Builds a rotation matrix using pitch, yaw and roll (euler) angles.

  Syntax
Return Dword = DX11 BUILD EULER ROTATION MATRIX(pitch, yaw, roll, [resultMatrix])
  Parameters
pitch
Float
The rotation around the X axis, in radians.
yaw
Float
The rotation around the Y axis, in radians.
roll
Float
The rotation around the Z axis, in radians.
[Optional] resultMatrix
Dword
The matrix to write the created rotation matrix to. Can be omitted, in which case a temporary matrix holding the generated rotation matrix will be returned.

  Returns

The resultMatrix, if one was provided, or a newly created temporary matrix holding the resulting matrix otherwise.

  See also

MATH Functions Menu
DX11 Function Categories